<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
    xmlns:th="http://www.thymeleaf.org">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">	
<title>管理员</title>
<script th:src="@{css.js}"></script>
</head>
<body>
<div class="page-container">
	<table class="table table-border table-bordered table-bg table-hover table-sort" id="table">
		<tr class="text-c">
		<th>ID</th><th>姓名</th><th>卡号</th><th>银行</th>
		</tr>
			<tr class="text-c" th:each="user:${session.Bankers}">
					<td><span th:text="${user.id}"></span></td>
					<td><span th:text="${user.name}"></span></td>
					<td><span th:text="${user.creditCard}"></span></td>
					<td><span th:text="${user.bank}"></span></td>
				</tr>
	</table>
	<a style="text-decoration:none" class="ml-5" th:onClick="user_add('添加银行卡','bank_add')" href="javascript:;" title="添加">
					<i class="Hui-iconfont">&#xe600;</i></a>
</div>
 <script type="text/javascript">
	function user_add(title,url){
		var index=layer.open({
			/* type:2,表里面出现一个iform */
			type:2,
			title:title,
			content:url	//导致ajax	
			});
		layer.full(index);
	}
 </script>
}
<script th:src="@{js.js}"></script>

</body>
</html>